package com.jic.manager.mapper;

import java.lang.Long;
import java.util.List;

import com.jic.manager.entity.Channel;
import com.jic.manager.request.ChannelRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 渠道表
 * @author : 
 * @email : 
 * @since : 2020-02-26 09:41:13
 * @version : v1.0.0
 */
@Mapper
public interface  ChannelMapper {

    long insert(Channel channel);

    long delete(Channel channel);

    long update(Channel channel);

    Channel queryByPrimaryKey(Long id);

    List<Channel> query(Channel channel);

    List<Channel> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("channelRequest") ChannelRequest channelRequest);

    long queryPageCount(ChannelRequest channel);
}